<template>
    <van-tabbar v-model="active" route>
        <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
        <van-tabbar-item icon="apps-o" to="/type">分类</van-tabbar-item>
        <van-tabbar-item icon="shopping-cart-o" to="/car">购物车</van-tabbar-item>
        <van-tabbar-item icon="friends-o" to="/me">我的</van-tabbar-item>
    </van-tabbar>
</template>
  
<script setup lang="ts">
import { onMounted, reactive, ref } from "vue";
const active = ref(0)
</script>
  
<style></style>